From 98f45933edc1e99a2525f470285e893228385939 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 15 May 2004 14:03:00 +0000 Subject: [PATCH] bug fix in wfUtf8ToHTML --- includes/GlobalFunctions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 80178b66d6..140f195fc0 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -174,7 +174,8 @@ function wfMungeToUtf8($string) { } # Converts a single UTF-8 character into the corresponding HTML character entity -function wfUtf8Entity( $char ) { +function wfUtf8Entity( $matches ) { + $char = $matches[0]; # Find the length $z = ord( $char{0} ); if ( $z & 0x80 ) { -- 2.20.1